<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业工单管理系统首页</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript">
	   function addOrder(){
	     var pid =$('option:selected').val();
	     window.location.href="addOrder.jsp?pid="+pid;
	   }
	</script>
  </head>
  
  <body>
    <table border="1" align="center">
    	<tr>
    		<td align="center" colspan="3"><h1>企业工单管理系统</h1></td>
    	</tr>
    	<tr>
    		<td style="background-color: gray;"><strong>选中项目</strong></td>
    		<td  align="left">
    			<select name="pid">
    				<s:iterator value="proList" status="s">
    					<option value="${id}">${projectName}</option>
    				</s:iterator>
    			</select>
    			<input type="button" value="确定" onclick="javascript:addOrder()"/>
    		</td>
    		<td></td>
    	</tr>
    </table>
  </body>
</html>
